home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mntlib43 / mntlib / mkdiffs < prev    next >
Text File  |  1993-10-29  |  613b  |  30 lines

  1. #! /bin/sh
  2. if test $# -lt 2
  3. then
  4.   echo 'usage: MKDIFFS rel-version fulldistdir file [file2 ...]'
  5.   exit 2
  6. fi
  7. relver=$1
  8. fulldist=$2
  9. shift 2
  10. for name in $*
  11. do
  12.   fname=`echo $name | sed -e 's;RCS/;;' -e 's;,v$;;'`
  13.   if test -f $fulldist/$fname
  14.   then
  15.     echo "Full distribution of \"$fname\" expected, no patch produced." 1>&2
  16.   else
  17.     rcsdiff -r$relver.1 -c $fname
  18.     if test $? -eq 2
  19.     then
  20.       diff -c /dev/null $fname
  21.       if test $? -eq 2
  22.       then
  23.         echo "Could not produce a diff for \"$fname\"." 1>&2
  24.         echo "Hit [return] to continue." 1>&2
  25.         read junk
  26.       fi
  27.     fi
  28.   fi
  29. done
  30.